<%@page contentType="text/html; UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户登录</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"/>
    <script src="${pageContext.request.contextPath}/back/statics/js/jquery-1.8.3.min.js"></script>

</head>

<script>

    $(function () {
        $("#setBtn").click(function () {
            alert("wqdwed");
           var usual=$("#usual").val();
           var middle=$("#middle").val();
           var final=$("#final").val();
            alert(final);
            $.post("${pageContext.request.contextPath}/teacher/setProportion",{
                usual:usual,
                middle:middle,
                fina:final
            })})
        });



</script>

<form role="form">
<h2 style="text-align: center"> 设置占比</h2>
<!-- 写入文件-->
    <div class="form-group" style="margin-top: 50px">
        <label style="font-size: 20px">平时成绩</label>
        <select class="form-control input-lg" style="border-color: black; margin-bottom:80px; border-style: double;" id="usual">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>
        </select>


        <label style="font-size: 20px"> 期中成绩</label>
        <select class="form-control input-lg" style="margin-bottom:80px;" id="middle">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>
        </select>


        <label style="font-size: 20px" >期末成绩</label>
        <select class="form-control input-lg" style="margin-bottom:80px;" id="final">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>
        </select>
    </div>
    <div style="text-align: center">
    <button type="button" class="btn btn-danger" id="setBtn"
            style="margin-top:20px;width: 30%;margin-left: 13px;">确定
    </button>
<input type="reset" class="btn btn-warning" style="margin-top:20px;width: 30%;margin-left: 13px;">

    </div>
</form>




</body>
</html>